home *** CD-ROM | disk | FTP | other *** search
/ GEGA 010 / GEGA010.iso / Mods / Doom 3 / BloodyScreme / bloodymess.pk4 / def / weapon_pistol.def < prev    next >
Text File  |  2004-08-05  |  8KB  |  264 lines

  1. /***********************************************************************
  2.  
  3.     weapon_pistol.def
  4.  
  5.     anim fire2                    models/md5/weapons/pistol_view/fire2.md5anim {
  6.         frame 1                    sound_weapon player_pistol_fire
  7.     }
  8.     
  9.     anim fire3                     models/md5/weapons/pistol_view/fire3.md5anim {
  10.         frame 1                    sound_weapon player_pistol_fire
  11.     }
  12.     
  13.     anim fire4                     models/md5/weapons/pistol_view/fire4.md5anim {
  14.         frame 1                    sound_weapon player_pistol_fire
  15.     }
  16.  
  17.  
  18. ***********************************************************************/
  19.  
  20. export fred {
  21.     // view model pistol
  22.     options -prefix PISTOL_ -keep barrel eject flash -keep flash -parent flash Bod -parent barrel Bar -parent Ext eject -parent Bar Bod -parent eject Bod -parent Bod Rhand1 -parent Luparm1 Rloarm1 -parent Cli Bod -parent Trig Bod -rename origin blah -sourcedir models/weapons/pistol/fred/cycles -destdir models/md5/weapons/pistol_view
  23.  
  24.     mesh    idle.ma -dest viewpistol
  25.     anim    idle.ma
  26.     anim    idle_empty.ma
  27.     anim    fire1.ma
  28.     anim    fire2.ma
  29.     anim    fire3.ma
  30.     anim    fire4.ma
  31.     anim    put_away.ma
  32.     //anim    models/weapons/pistol/fred/cycles/raise3.ma -dest models/md5/weapons/pistol_view/raise3
  33.     anim    raise.ma
  34.     anim    reload_empty.ma
  35.     anim    reload_empty.ma -range 1 14 -dest empty_reload_start
  36.  
  37.     // world model pistol
  38.     options -ignorescale -prefix PLAYER_PISTOL_ -keep pistolclip ATTACHER barrel flash eject -parent eject pbody -parent flash pbody -parent pistolclip pbody -rename pbarrel barrel -rename ATTACHER origin -clearorigin
  39.  
  40.     addoptions -skipmesh PLAYER_pistolBarrel
  41.     addoptions -skipmesh PLAYER_pistolExtender
  42.     addoptions -skipmesh PLAYER_pistolTrigger
  43.     addoptions -skipmesh PLAYER_pistolBody
  44.     addoptions -skipmesh PLAYER_pistolClip1
  45.  
  46.     mesh    models/characters/player/mocap/pistol_idle.mb -dest models/md5/weapons/pistol_world/worldpistol
  47.     anim    models/characters/player/mocap/pistol_idle.mb -dest models/md5/weapons/pistol_world/pistol_idle
  48. }
  49.  
  50. entityDef weapon_pistol {
  51.     "editor_color"                ".3 .3 1"
  52.     "editor_mins"                "-16 -16 0"
  53.     "editor_maxs"                "16 16 32"
  54.     "editor_usage"                "Pistol"
  55.     "editor_rotatable"        "1"
  56.  
  57.     "spawnclass"                "idItem"
  58.     "size"                        "32 32 32"
  59.     "model"                        "models/weapons/pistol/w_pistol.lwo"
  60.     "model_view"                 "viewmodel_pistol"
  61.     "model_world"                 "worldmodel_pistol"
  62.     "joint_attach"                "PISTOL_ATTACHER"
  63.     "def_dropItem"                "moveable_item_pistol"
  64.  
  65.     "inv_name"                    "Pistol"
  66.     "inv_weapon"                "weapon_pistol"
  67.     "inv_item"                    "5"
  68.     "inv_ammo_bullets"            "12"
  69.     "icon"                        "guis/assets/hud/wpn_1"
  70.  
  71.     "weapon_scriptobject"        "weapon_pistol"
  72.     "def_projectile"            "projectile_bullet_pistol"
  73.     "ammoType"                    "ammo_bullets"
  74.     "ammoRequired"                "1"
  75.     "clipSize"                    "12"
  76.     "lowAmmo"                    "4"
  77.     
  78.     
  79.     
  80.     //start Cryect
  81.     //"mtr_flashShader"            "muzzleflash"
  82.     //"flashColor"                "1 0.8 0.4"
  83.     //"flashRadius"                "120"
  84.     "mtr_flashShader"            "lights/flashlight5"
  85.     "flashColor"                "1 1 1"
  86.     "flashTime"                "0.016"
  87.     "flashRadius"                "400"
  88.     "flashAngle"                "22.0"
  89.     "flashTarget"                "1280 0 0 "
  90.     "flashUp"                "0 640 0"
  91.     "flashRight"                "0 0 -640"
  92.     "flashPointLight"            "0"    
  93.     //End Cryect
  94.     "silent_fire"                "0"
  95.     "recoilTime"                "125"
  96.     "recoilAngles"                "-1 0 0"
  97.  
  98.     "weaponAngleOffsetAverages" "10"
  99.     "weaponAngleOffsetScale"     ".25"
  100.     "weaponAngleOffsetMax"        "10"
  101.     "weaponOffsetTime"            "400"
  102.     "weaponOffsetScale"            "0.005"
  103.  
  104.     "hide_time"                    "0.3"                                // time to hide weapon when talking to npcs or looking at guis
  105.     "hide_distance"                "-15"                                // distance to offset weapon when talking to npcs or looking at guis
  106.  
  107.     "smoke_muzzle"                "muzzlesmoke.prt"
  108.     "def_ejectBrass"            "debris_brass"
  109.     "ejectBrassDelay"            "10"
  110.     
  111.     "snd_acquire"                "sound_weapon_acquire"
  112.     "snd_respawn"                "sound_weapon_respawn"
  113.     
  114.     "skin_invisible"            "skins/pistol_invis"
  115.     
  116.     "spread"                    "0"
  117. }
  118.  
  119. entityDef moveable_item_pistol {
  120.     "inherit"                    "weapon_pistol"
  121.     "spawnclass"                "idMoveableItem"
  122.     "density"                    "0.05"
  123.     "friction"                    "0.2"
  124.     "bouncyness"                "0"
  125. }
  126.  
  127. model worldmodel_pistol {
  128.     mesh                         models/md5/weapons/pistol_world/worldpistol.md5mesh
  129.  
  130.     anim idle                     models/md5/weapons/pistol_world/pistol_idle.md5anim
  131.     anim idle_empty                models/md5/weapons/pistol_world/pistol_idle.md5anim
  132.     anim aim                    models/md5/weapons/pistol_world/pistol_idle.md5anim
  133.     anim fire1                     models/md5/weapons/pistol_world/pistol_idle.md5anim
  134.     anim putaway                models/md5/weapons/pistol_world/pistol_idle.md5anim
  135.     anim raise                    models/md5/weapons/pistol_world/pistol_idle.md5anim
  136.     anim reload                    models/md5/weapons/pistol_world/pistol_idle.md5anim
  137.     anim noammo                    models/md5/weapons/pistol_world/pistol_idle.md5anim
  138. }
  139.  
  140. model viewmodel_pistol {
  141.     mesh                        models/md5/weapons/pistol_view/viewpistol.md5mesh
  142.     
  143.     anim raise                     models/md5/weapons/pistol_view/raise.md5anim {
  144.         frame 7                    sound_body player_pistol_raise_01
  145.     }
  146.     anim idle                    models/md5/weapons/pistol_view/idle.md5anim
  147.     anim idle_empty                models/md5/weapons/pistol_view/idle_empty.md5anim
  148.     
  149.     anim fire1                    models/md5/weapons/pistol_view/fire1.md5anim {
  150.         frame 1                    sound_weapon player_pistol_fire
  151.     }
  152.     
  153.     
  154.         
  155.     anim reload                 models/md5/weapons/pistol_view/reload_empty.md5anim {
  156.         frame 1                    sound_weapon player_pistol_reload
  157.     }
  158.     
  159.     anim noammo                 models/md5/weapons/pistol_view/empty_reload_start.md5anim {
  160.         frame 1                    sound_body player_pistol_empty
  161.     }
  162.  
  163.     anim putaway                 models/md5/weapons/pistol_view/put_away.md5anim
  164. }
  165.  
  166. entityDef    damage_bullet_pistol {
  167.     "damage"            "14"
  168.     "kickDir"            "1 0 0"
  169.  
  170.     "mtr_blob"            "genericDamage"
  171.     "blob_time"            "300"
  172.     "blob_size"            "400"
  173.     "blob_offset_x"        "400"
  174.  
  175.     "knockback"            "1"
  176.     
  177.     "gib"                "0"
  178.     
  179.     
  180.     "smoke_wound_flesh"    "burstysquirt.prt"
  181.     "mtr_wound_flesh"    "textures/decals/hurt02"
  182.     "mtr_wound_metal"    "textures/decals/hurtmetal"
  183.     "mtr_wound_ricochet"    "textures/decals/hurtmetal"
  184.     "mtr_splat_flesh"    "textures/decals/dsplat2"
  185.     "mtr_splat_flesh2"    "textures/decals/dsplat5"
  186.     "mtr_splat_flesh3"    "textures/decals/dsplat7"
  187.     "mtr_splat_flesh4"    "textures/decals/dsplat11"
  188.     // the flesh impact is used in the damage so players hear it on their body
  189.     // the other impacts are played on detonation
  190.     "snd_flesh"            "bullet_impact_flesh"
  191.  
  192.     "kick_time"            "400"
  193.     "kick_amplitude"    "1"
  194.  
  195.     "dv_time"            "100"
  196. }
  197.  
  198. entityDef projectile_bullet_pistol {
  199.     "spawnclass"                "idProjectile"
  200.     "mins"                        "-1 -1 -1"
  201.     "maxs"                        "1 1 1"
  202.     "cone"                        "3"
  203.     "scale"                        "0.1"
  204.     "noshadows"                    "1"
  205.  
  206.     "def_damage"                "damage_bullet_pistol"
  207.  
  208.     "launchFromBarrel"            "0"
  209.     "health"                    "0"
  210.     "velocity"                    "7200 0 0"    // .38 Special 600 fps.  Source: Petzal, David E. "How fast is a speeding bullet." Field and Stream. 97 (1992): 23
  211.     "angular_velocity"            "0 0 0"
  212.     "thrust"                    "0"
  213.     "thrust_start"                "0"
  214.     "thrust_end"                "0"
  215.     "linear_friction"            "0"
  216.     "angular_friction"            "0"
  217.     "contact_friction"            "0"
  218.     "bounce"                    "0.6"
  219.     "mass"                        "2"
  220.     "gravity"                    "0"
  221.     "fuse"                        "4"
  222.  
  223.     "detonate_on_fuse"            "0"
  224.     "detonate_on_death"            "0"
  225.     "detonate_on_world"            "1"
  226.     "detonate_on_actor"            "1"
  227.  
  228.     "impact_damage_effect"        "1"
  229.     "impact_gib"                "1"
  230.  
  231.     "mtr_detonate"                "textures/decals/bulleth02"
  232.     "mtr_detonate_glass"        "textures/decals/testbulletglass1"
  233.     "decal_size"                "10"
  234.  
  235.     "model_smokespark"            "bulletsmokeandspark.prt"
  236.     "model_ricochet"            "bulletricochet.prt"
  237.  
  238.  
  239.     // played on collision with non-damagable entities
  240.     "snd_plastic"                "bullet_impact_plastic"
  241.     "snd_cardboard"                "bullet_impact_cardboard"
  242.     "snd_flesh"                    "bullet_impact_flesh"
  243.     "snd_metal"                    "bullet_impact_metal"
  244.     "snd_stone"                    "bullet_impact_stone"
  245.     "snd_wood"                    "bullet_impact_wood"
  246.     "snd_glass"                    "bullet_impact_glass"
  247.     "snd_liquid"                "bullet_impact_liquid"
  248.     "snd_ricochet"                "bullet_ricochet"
  249.     //"snd_impact"                "bullet_impact_metal"
  250.                                 
  251.     "mtr_light_shader"            ""
  252.     "light_color"                "0 0 0"
  253.     "light_radius"                "0"
  254.     "light_offset"                "0 0 0"
  255.  
  256.     "mtr_explode_light_shader"    ""
  257.     "explode_light_color"        "0 0 0"
  258.     "explode_light_radius"        "0"
  259.     "explode_light_fadetime"    "0"
  260. }
  261.  
  262.  
  263.  
  264.